package com.sugar.subscribe.course.module.business.controller.admin.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 订单新增/修改 Request VO")
@Data
public class OrderAmountUpdateReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1775")
    @NotNull(message = "订单编号不能为空")
    private Long id;

    @Schema(description = "实付金额（单位分）")
    @NotNull(message = "订单金额不能为空")
    @Min(value = 1, message = "订单金额不能小于零")
    private Integer paymentAmount;
}